<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>毛玻璃效果</title>
  <style>
    html,
    body {
      width: 100%;
      height: 100%;
      margin: 0;
    }

    .box {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 36px;
      color: #fff;
      position: relative;
      background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
    }

    .box div {
      width: 400px;
      height: 300px;
      position: absolute;
      background: rgba(255, 255, 255, 0.25);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
      /* <filter-function> 滤镜函数值 */
      backdrop-filter: blur(2px);
      border-radius: 10px;
    }
  </style>
</head>

<body>
  <div class="box">
    小笑残虹
    <div></div>
  </div>
</body>

</html>